package com.accesshollywood.grfxOrdering.panels;

import java.awt.Dimension;

import javax.swing.JComponent;
import javax.swing.JPanel;

import org.jdesktop.swingx.VerticalLayout;

import com.accesshollywood.indexables.GrfxOrder;

public class OrderDetailsPanel extends JPanel {
	public JComponent		parent;
	private GrfxOrder		grfxOrder;
	public ApprovalPanel	approvalPanel;
	public ItemListPanel	itemPanel;
	public NotesPanel		notesPanel;

	public OrderDetailsPanel(GrfxOrder currOrder, JComponent parent) {
		this.grfxOrder = currOrder;
		this.parent = parent;

		setLayout(new VerticalLayout());

		approvalPanel = new ApprovalPanel(grfxOrder, this);
		approvalPanel.setMaximumSize(new Dimension(37627, 25));
		approvalPanel.setMinimumSize(new Dimension(100, 25));
		approvalPanel.setPreferredSize(new Dimension(100, 25));

		itemPanel = new ItemListPanel(grfxOrder);

		add(approvalPanel);
		add(itemPanel);

		notesPanel = new NotesPanel(grfxOrder, this);
		notesPanel.createPanel(grfxOrder.getNotes());
		add(notesPanel);
	}

}
